import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';

@Schema()
export class Information extends Document {
  @Prop()
  name: string;
  @Prop()
  theme: string;
  @Prop()
  author: string;
  @Prop()
  keyword: string;
  @Prop()
  targ: string;
  @Prop()
  collect: boolean;
  @Prop()
  time: string;
  @Prop()
  userId: string;
  @Prop()
  files: string[];
  @Prop()
  status: number;
}
